package org.gd.spring.hibernate.entity;

import org.codehaus.jackson.annotate.JsonAutoDetect;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author Gorhover
 * @version 1.0-SNAPSHOT
 * @since 2013-10-03 09:35
 */
@Entity
@Table(name = "P48CallableEntry")
@JsonAutoDetect
public class P48CallableEntry implements Serializable {

    @Id
    @Column(unique = true, nullable = false)
    private String reference;
    @Column(unique = false, nullable = false, columnDefinition = "blob")
    private byte[] blob;

    public String getReference() {
        return reference;
    }

    public void setReference(String reference) {
        this.reference = reference;
    }

    public byte[] getBlob() {
        return blob;
    }

    public void setBlob(byte[] blob) {
        this.blob = blob;
    }
}
